<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Kra8\Snowflake\HasSnowflakePrimary;

class Bill extends Model
{
    use SoftDeletes;
    use HasSnowflakePrimary;
    protected $fillable = [
        'origin_order_id',
        'member_id',
        'channel',
        'fee',
        'type',
        'remark'
    ];
    public function wechat_author()
    {
        return $this->belongsTo('App\Models\Wechat', 'member_id');
    }
}
